<div class="panel panel-default" ng-controller="refundDetailCtrl">
	<div class="panel-heading">订票管理 / 退款单 / 退款单编号：{{refund.refundNo}}
		<span style="float: right;margin-top: -7px;height: 0px">
			<button type="submit" class="btn m-b-xs w-xs btn-info" ui-sref="app.booking.return()">返回</button>
        </span>
	</div>
	<div class="row wrapper m-n">
		<div class="col-lg-12">
			<div class="panel panel-default">
				<div class="panel-body">退款详细</div>
			</div>
			<div class="table-responsive" style="margin-top:-20px">
				<table class="table table-striped b-t b-light">
					<tbody>
						<tr>
							<td>退款批次号：{{refund.batchNo}}</td>
							<td>退款编号：{{refund.refundNo}}</td>
							<td>申请退款时间：{{refund.requestTime | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
						</tr>
						<tr>
							<td>退款状态：
								<span ng-if="refund.status==1">退款中</span>
								<span ng-if="refund.status==2">完成退款</span>
								<span ng-if="refund.status==3">失败</span></td>
							<td>子订单编号：{{refund.subOrderNo}}</td>
							<td>退款完成时间：{{refund.refundTime | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
						</tr>
						<tr>
							<td>父订单号：{{refund.order.orderNo}}</td>
							<td>父订单状态：{{refund.order.status | orderFilter}}</td>
							<td>订单生成时间：{{refund.order.createTime | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
						</tr>
						<tr>
							<td>支付流水号：{{refund.orderPayment.tradeNo}}</td>
							<td>退款申请人：{{refund.orderPayment.passenger.name }}</td>
							<td>申请人手机号 ：{{refund.orderPayment.passenger.phone }}</td>
						</tr>
						<tr>
							<td>已支付金额：{{refund.paidPrice| number:2}}</td>
							<td>退款金额：{{refund.refundPrice| number:2}}</td>
							<td>退款手续费：{{refund.serviceCharge| number:2 }}</td>
						</tr>
						<tr>
							<td>支付方式：{{refund.orderPayment.payment.type | paymentFilter}}</td>
							<td colspan="2">备注：{{refund.remark}}</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>


		<div class="col-lg-12">
			<div class="panel panel-default">
				<div class="panel-body">班次信息</div>
			</div>
			<div class="table-responsive" style="margin-top:-20px">
				<table class="table table-striped b-t b-light">
					<thead>
						<tr>
							<th>车次号</th>
							<th>始发城市</th>
							<th>始发客运站</th>
							<th>目的城市</th>
							<th>目的客运站</th>
							<th>发车日期</th>
							<th>发车时间</th>
							<th>车票总价</th>
							<th>座位号</th>

						</tr>
					</thead>
					<tbody>
						<tr>
							<td>{{refund.order.orderDetail.shiftNo}}</td>
							<td>{{refund.order.orderDetail.startCity}}</td>
							<td>{{refund.order.orderDetail.startStation}}</td>
							<td>{{refund.order.orderDetail.terminalCity}}</td>
							<td>{{refund.order.orderDetail.terminalStation}}</td>
							<td>{{refund.order.orderDetail.departureTime | date : 'yyyy-MM-dd'}}</td>
							<td>{{refund.order.orderDetail.departureTime | date : 'HH:mm:ss'}}</td>
							<td>{{refund.order.totalPrice | number:2}}</td>
							<td>{{refund.order.orderDetail.seatsNo}}</td>
						</tr>
					</tbody>
				</table>

			</div>
		</div>

		<div class="col-lg-12">
			<div class="panel panel-default">
				<div class="panel-body">保险信息</div>
			</div>
			<div class="table-responsive" style="margin-top:-20px">
				<table class="table table-striped b-t b-light">
					<thead>
						<tr>
							<th>编号</th>
							<th>名称</th>
							<th>保费</th>
							<th>赔付金额</th>
							<th>是否可退</th>
						</tr>
					</thead>
					<tbody>
						<tr ng-if="refund.subOrder.insuranceFlag==true">
							<td>{{refund.subOrder.orderInsurance.id}}</td>
							<td>{{refund.subOrder.orderInsurance.name}}</td>
							<td>{{refund.subOrder.orderInsurance.price | number:2}}</td>
							<td>{{refund.subOrder.orderInsurance.payment | number:2}}</td>
							<td>
								<span ng-if="refund.subOrder.orderInsurance.refundable==0">不可退</span>
								<span ng-if="refund.subOrder.orderInsurance.refundable==1">可退</span>
							</td>
						</tr>
						<tr ng-if="refund.subOrder.insuranceFlag==false">
							<td colspan="5" align="center">该乘客未购买保险！</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>

		<div class="col-lg-12">
			<div class="panel panel-default">
				<div class="panel-body">退款乘客信息</div>
			</div>
			<div class="table-responsive" style="margin-top:-20px">
				<table class="table table-striped b-t b-light">
					<thead>
						<tr>
							<th>编号</th>
							<th>姓名</th>
							<th>手机号码</th>
							<th>身份证号码</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td>{{refund.subOrder.contact.id}}</td>
							<td>{{refund.subOrder.contact.name}}</td>
							<td>{{refund.subOrder.contact.phone}}</td>
							<td>{{refund.subOrder.contact.idCard}}</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>

	</div>
</div>